package com.budwk.app.waterquality.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@Table("waterquality.wk_water_section_info_detail")
@Comment("水质断面检测点成果基本信息详情表表")
@ApiModel(description = "水质断面检测点成果基本信息详情表表")
public class WaterSectionInfoDetail extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("section_id")
    @Comment("水质断面检测点成果基本信息表id")
    @ApiModelProperty(description = "水质断面检测点成果基本信息表id")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String sectionId;

    @Column("section_param")
    @Comment("成果详细数据")
    @ApiModelProperty(description = "成果详细数据 来源于枚举 WaterSectionDetailEnum")
    @ColDefine(type = ColType.TEXT)
    private String sectionParam;

    @Column("remark")
    @Comment("备注说明")
    @ApiModelProperty(description = "备注说明")
    @ColDefine(type = ColType.VARCHAR, width = 600)
    private String remark;

    private WaterSectionInfo sectionInfo;
}
